/*
	This file is part of "Ants on the web".

    "Ants on the web" is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    "Ants on the web" is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with "Ants on the web".  If not, see <http://www.gnu.org/licenses/>.
*/

package org.utc.ia04.antsontheweb.pheromone;

import java.net.URL;
import java.util.HashSet;
import java.util.Set;


public class Node 
{
	private URL url;
	private boolean target; 
	private double pheromone;
	private Set<Node> nextNodes;
	
	public Node(URL url, boolean target)
	{
		this.url = url;
		this.target = target;
		pheromone = 0;
		nextNodes = new HashSet<Node>();
	}
	
	public URL getUrl() {
		return url;
	}
	public void setUrl(URL url) {
		this.url = url;
	}
	public double getPheromone() {
		return pheromone;
	}
	public void setPheromone(double pheromone) {
		this.pheromone = pheromone;
	}

	public Set<Node> getNextNodes() {
		return nextNodes;
	}

	public void setNextNodes(Set<Node> nextNodes) {
		this.nextNodes = nextNodes;
	}
	
	public void addNextNode(Node node){
		nextNodes.add(node);
	}

	public boolean isTarget() {
		return target;
	}

	public void setTarget(boolean target) {
		this.target = target;
	}
}
